package nl.saxion.ami;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;

public class RESTLETApplication extends Application{

	@Override
	public synchronized Restlet createInboundRoot() {
		Router router = new Router(getContext());

		// Defines routes
		router.attach("/ar/{sensorid}", RESTLETResource.class);
		router.attach("/ar2/{sensorid}", RESTLETWaardeReeks.class);

		return router;
	}

}
